﻿namespace WMS6.Web.BaseInfoServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DebuggerStepThrough, DataContract(Name="LocationTemplateInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class LocationTemplateInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string Field1DescField;
        [OptionalField]
        private int Field1LengthField;
        [OptionalField]
        private string Field1TypeField;
        [OptionalField]
        private string Field2DescField;
        [OptionalField]
        private int Field2LengthField;
        [OptionalField]
        private string Field2TypeField;
        [OptionalField]
        private string Field3DescField;
        [OptionalField]
        private int Field3LengthField;
        [OptionalField]
        private string Field3TypeField;
        [OptionalField]
        private string Field4DescField;
        [OptionalField]
        private int Field4LengthField;
        [OptionalField]
        private string Field4TypeField;
        [OptionalField]
        private string Field5DescField;
        [OptionalField]
        private int Field5LengthField;
        [OptionalField]
        private string Field5TypeField;
        [OptionalField]
        private string IsActiveField;
        [OptionalField]
        private string LocTemplateIDField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private string SeperatorCharField;
        [OptionalField]
        private byte[] TsField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string Field1Desc
        {
            get
            {
                return this.Field1DescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field1DescField, value))
                {
                    this.Field1DescField = value;
                    this.RaisePropertyChanged("Field1Desc");
                }
            }
        }

        [DataMember]
        public int Field1Length
        {
            get
            {
                return this.Field1LengthField;
            }
            set
            {
                if (!this.Field1LengthField.Equals(value))
                {
                    this.Field1LengthField = value;
                    this.RaisePropertyChanged("Field1Length");
                }
            }
        }

        [DataMember]
        public string Field1Type
        {
            get
            {
                return this.Field1TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field1TypeField, value))
                {
                    this.Field1TypeField = value;
                    this.RaisePropertyChanged("Field1Type");
                }
            }
        }

        [DataMember]
        public string Field2Desc
        {
            get
            {
                return this.Field2DescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field2DescField, value))
                {
                    this.Field2DescField = value;
                    this.RaisePropertyChanged("Field2Desc");
                }
            }
        }

        [DataMember]
        public int Field2Length
        {
            get
            {
                return this.Field2LengthField;
            }
            set
            {
                if (!this.Field2LengthField.Equals(value))
                {
                    this.Field2LengthField = value;
                    this.RaisePropertyChanged("Field2Length");
                }
            }
        }

        [DataMember]
        public string Field2Type
        {
            get
            {
                return this.Field2TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field2TypeField, value))
                {
                    this.Field2TypeField = value;
                    this.RaisePropertyChanged("Field2Type");
                }
            }
        }

        [DataMember]
        public string Field3Desc
        {
            get
            {
                return this.Field3DescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field3DescField, value))
                {
                    this.Field3DescField = value;
                    this.RaisePropertyChanged("Field3Desc");
                }
            }
        }

        [DataMember]
        public int Field3Length
        {
            get
            {
                return this.Field3LengthField;
            }
            set
            {
                if (!this.Field3LengthField.Equals(value))
                {
                    this.Field3LengthField = value;
                    this.RaisePropertyChanged("Field3Length");
                }
            }
        }

        [DataMember]
        public string Field3Type
        {
            get
            {
                return this.Field3TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field3TypeField, value))
                {
                    this.Field3TypeField = value;
                    this.RaisePropertyChanged("Field3Type");
                }
            }
        }

        [DataMember]
        public string Field4Desc
        {
            get
            {
                return this.Field4DescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field4DescField, value))
                {
                    this.Field4DescField = value;
                    this.RaisePropertyChanged("Field4Desc");
                }
            }
        }

        [DataMember]
        public int Field4Length
        {
            get
            {
                return this.Field4LengthField;
            }
            set
            {
                if (!this.Field4LengthField.Equals(value))
                {
                    this.Field4LengthField = value;
                    this.RaisePropertyChanged("Field4Length");
                }
            }
        }

        [DataMember]
        public string Field4Type
        {
            get
            {
                return this.Field4TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field4TypeField, value))
                {
                    this.Field4TypeField = value;
                    this.RaisePropertyChanged("Field4Type");
                }
            }
        }

        [DataMember]
        public string Field5Desc
        {
            get
            {
                return this.Field5DescField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field5DescField, value))
                {
                    this.Field5DescField = value;
                    this.RaisePropertyChanged("Field5Desc");
                }
            }
        }

        [DataMember]
        public int Field5Length
        {
            get
            {
                return this.Field5LengthField;
            }
            set
            {
                if (!this.Field5LengthField.Equals(value))
                {
                    this.Field5LengthField = value;
                    this.RaisePropertyChanged("Field5Length");
                }
            }
        }

        [DataMember]
        public string Field5Type
        {
            get
            {
                return this.Field5TypeField;
            }
            set
            {
                if (!object.ReferenceEquals(this.Field5TypeField, value))
                {
                    this.Field5TypeField = value;
                    this.RaisePropertyChanged("Field5Type");
                }
            }
        }

        [DataMember]
        public string IsActive
        {
            get
            {
                return this.IsActiveField;
            }
            set
            {
                if (!object.ReferenceEquals(this.IsActiveField, value))
                {
                    this.IsActiveField = value;
                    this.RaisePropertyChanged("IsActive");
                }
            }
        }

        [DataMember]
        public string LocTemplateID
        {
            get
            {
                return this.LocTemplateIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.LocTemplateIDField, value))
                {
                    this.LocTemplateIDField = value;
                    this.RaisePropertyChanged("LocTemplateID");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public string SeperatorChar
        {
            get
            {
                return this.SeperatorCharField;
            }
            set
            {
                if (!object.ReferenceEquals(this.SeperatorCharField, value))
                {
                    this.SeperatorCharField = value;
                    this.RaisePropertyChanged("SeperatorChar");
                }
            }
        }

        [DataMember]
        public byte[] Ts
        {
            get
            {
                return this.TsField;
            }
            set
            {
                if (!object.ReferenceEquals(this.TsField, value))
                {
                    this.TsField = value;
                    this.RaisePropertyChanged("Ts");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

